package cn.langpy.dblistener.core.model.source;


import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;

public class DdlRecord {
    private JSONObject source;
    private JSONObject position;
    private String databaseName;
    private String ddl;
    private JSONArray tableChanges;

    public JSONObject getSource() {
        return source;
    }

    public void setSource(JSONObject source) {
        this.source = source;
    }

    public JSONObject getPosition() {
        return position;
    }

    public void setPosition(JSONObject position) {
        this.position = position;
    }

    public String getDatabaseName() {
        return databaseName;
    }

    public void setDatabaseName(String databaseName) {
        this.databaseName = databaseName;
    }

    public String getDdl() {
        return ddl;
    }

    public void setDdl(String ddl) {
        this.ddl = ddl;
    }

    public JSONArray getTableChanges() {
        return tableChanges;
    }

    public void setTableChanges(JSONArray tableChanges) {
        this.tableChanges = tableChanges;
    }
}
